package com.dev.op.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dev.op.entity.User;
import com.dev.op.entity.UserGroup;
import com.dev.op.entity.UserGroupAdmin;
import com.dev.op.entity.UserGroupMember;
import com.dev.op.service.UserGroupAdminService;
import com.dev.op.mapper.UserGroupAdminMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Administrator
* @description 针对表【user_group_admin】的数据库操作Service实现
* @createDate 2025-03-31 14:05:36
*/
@Service
public class UserGroupAdminServiceImpl extends ServiceImpl<UserGroupAdminMapper, UserGroupAdmin>
    implements UserGroupAdminService{

    @Autowired
    UserGroupAdminMapper userGroupAdminMapper;

    @Override
    public List<UserGroup> getManagedGroup(String userId) {
        return userGroupAdminMapper.selectManagedGroups(userId);
    }

    @Override
    public List<UserGroupMember> getManagedUser(String userId) {
        return userGroupAdminMapper.selectManagedUsers(userId);
    }
}




